package com.web.manager.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.web.manager.pojo.Comment;
import com.web.manager.mapper.CommentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentService extends ServiceImpl<CommentMapper, Comment> {
    @Resource
    private CommentMapper commentMapper;

    @Override
    public boolean save(Comment comment){

        return super.save(comment);
    }



    public List<Comment> findCommentDetail(Integer articleId) {
        return commentMapper.findCommentDetail(articleId);
    }
}
